
The Threshold Condition is one of the most versatile conditions
in thinkingParticles. A common use for this operator is to make other
rules dependent on several values that must be reached before the new
rules are analyzed. What's more, nearly any value can be used as an input
for this threshold.
ON - (Bool) This input data
stream determines whether the operator is considered 'on' or 'off'. You
can connect other operators to this input channel such as a Bool
Helper to activate/deactivate the whole operator.
Time - (Time) This input data stream is used to define the local
time for the operator when the user wants to override the default system
time.
Value - (Scalar) This input data stream is used as the value to
be evaluated. If the value lies within the two Threshold spinners, then
the condition will generate a true output (or outside with the Inside
checkbox turned off).
Threshold 1 - (Scalar) This input data stream is used to override
the Threshold 1 spinner value.
Threshold 2 - (Scalar) This input data stream is used to override
the Threshold 2 spinner value.
Inside - (Bool) This input data stream determines whether or not
the threshold is computed between the two Threshold settings (Inside =
on), or if the two Threshold settings are excluded from the valid range
(Inside = off).
Out - (Bool) This output
data stream sends a true message if the threshold value is reached, and
a false message the threshold is not met.

Threshold 1 - This value is used as the low end of the threshold
range that is tested against. Depending on the Inside
checkbox, this value will be the point that must be reached (or avoided)
to generate a “true” condition and set the Output data stream to 1.
Threshold 2 - This value is used as the high end of the threshold
range that is tested against. Depending on the Inside
checkbox this value will be the point that must be reached or avoided
to create a “true” condition and set the Output data stream to 1.
Inside - If this option is checked, the range of values must lay
between the Threshold 1 and Threshold 2 settings to create a true condition.
Numbers that fall outside of this range will be treated as a false condition.
When this option is unchecked, Threshold 1 and Threshold 2 represent a
range of numbers that will be excluded from the condition. For example,
let's say that Threshold1 = 11 and Threshold2 =345. Now, assume that the
input data stream coming into the Threshold Condition has a value of 74
at one point in time so it creates a false condition. If at a later point,
any number below 11 or above 345 is input, it will create a true condition.